﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="homepicsedit.aspx.cs" Inherits="CampanyCMS.WebUI.Admin.Baseinfo.homepicsedit" %>
<%@ Register assembly="FredCK.FCKeditorV2" namespace="FredCK.FCKeditorV2" tagprefix="FCKeditorV2" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>NewProductType</title>
		<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
		<meta content="C#" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
		<LINK href="../../css/cssCn1.css" type="text/css" rel="stylesheet">
	     <script src="../../js/jquery-1.3.2.min.js" type="text/javascript"></script>

    <script type="text/javascript">
        function checkinput() {
            if ($.trim($('#txtTitle').val()) == '') {
                alert("请输入标题");
                $('#txtTitle').focus();
                return false;
            }



            if ($('#UploadFile').val() == ""
                && (document.getElementById('imgShow') == null || document.getElementById('imgShow').src == ''
                   )) {
                alert("请选择上传文件！");
                return false;
            }
           
            

        }

    </script>
	</HEAD>
	<body MS_POSITIONING="GridLayout">
		<form id="Form1" method="post" runat="server">
			<table cellSpacing="0" cellPadding="0" width="100%" border="0">
				<tr>
					<td>
						<div class="div_subtitle">当前位置：信息编辑 <span class="arrow_subtitle">&gt;</span></div>
					</td>
				</tr>
			</table>
			<TABLE id="tb_content" cellSpacing="0" cellPadding="0">
				<TBODY>
					<tr>
						<td> 
							<TABLE id="tb_content" cellSpacing="0" cellPadding="0">
								<tr>
									<td>
										<TABLE class="tb_input" id="queryPane" cellSpacing="1" cellPadding="0" width="100%" align="center"
											bgColor="#ffffff" border="0">
											<tr>
												<td colSpan="2"><IMG src="../../Img/showtoc.gif"> </td>
											</tr>
											<tr>
												<td class="td_title" width="15%">名称：</td>
												<td colSpan="1"><asp:textbox id="txtTitle" runat="server" Width="348px"></asp:textbox></td>
											</tr>
											 
											<tr>
												<td class="td_title" width="15%" style="height: 19px">图片：</td>
												<td colSpan="1" class="style1">
                                                    <INPUT id="UploadFile" type="file" runat="server" NAME="UploadFile"><hr />
                                                    <asp:Image ID="imgShow" runat="server" />
                                                    &nbsp;<asp:Button ID="btnDelFile" Visible=false
                                                runat="server" Text="删除上传文件" onclick="btnDelFile_Click" />
                                                </td>
											</tr>
										 
											<tr>
												<td class="td_title" width="15%">连接：</td>
												<td colSpan="1"><asp:textbox id="txtLink" runat="server" Width="348px"></asp:textbox></td>
											</tr>
											 
											</TABLE>
									</td>
								</tr>
							</TABLE>
							<table width="100%">
								<tr>
									<td align="right" width="100%"><asp:button id="btnSave" runat="server" Text="保存" 
                                            CssClass="Button" onclick="btnSave_Click" OnClientClick="return checkinput()" Width="48px"></asp:button>&nbsp;
                                        <asp:button id="btnReturn" runat="server" Text="返回" CssClass="Button" 
                                             Width="50px" onclick="btnReturn_Click"></asp:button></td>
								</tr>
							</table>
						</td>
					</tr>
				</TBODY>
			</TABLE>
			</TD></TR></TBODY></TABLE></form>
	</body>
</HTML>
